package org.sn.jdish.designmode.factory;

import org.sn.jdish.designmode.factory.impl.ManShirtProducer;
import org.sn.jdish.designmode.factory.impl.WomanShirtProducer;

/**
 * 普通工厂
 * 
 * @author snzigod@hotmail.com
 *
 */
public class SimpleShirtFactory {

	public ShirtProducer produce(String shirtType) {
		if ("t-shirt".equals(shirtType)) {
			return new WomanShirtProducer();
		} else {
			return new ManShirtProducer();
		}
	}

}
